#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/14 10:16
# @Author : 闫峰
# @File    : Sensitive.py
from common.setting import ensure_path_sep
from utils.logging_tool.init_logger import init_logger
from utils.mysqlUtils.db_pool import Database
from utils.mysqlUtils.mongodb_utils import MongoDBLink

INFO, ERROR, WARNING = init_logger()


class Sensitive:
    """
    敏感词调度任务
    """

    modb = MongoDBLink(uri='mongodb://reader:33oQm3o6nA9HaLhW#@139.159.193.165:8635,121.37.18.161:8635/?authSource=admin',
                       dbname='zhcxkj_riskworker', coll_name='Walmart_Listing_Sensitive')

    mysql_db = Database(ensure_path_sep("\\config\\shopeev2_config.yaml.bak"), "test_jdw_database")